﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RssSources.ascx.cs" Inherits="admin_webparts_Plug_ins_RssNews_RssSources" %>
<%@ Register Src="RssSourcesMenu.ascx" TagName="RssSourcesMenu" TagPrefix="uc1" %>
<%
    string bUrl = "?type=" + Request.QueryString["type"] + "&name=" + Request.QueryString["name"] + "&item=" + Request.QueryString["item"];
    bool isAdmin = Context.User.Identity.Name.Equals("admin", StringComparison.OrdinalIgnoreCase);
%>
<div class="tip" style="position: relative;">
	<h1 style="left: 0px; position: relative;">Quản lý nguồn tin cung cấp RSS</h1>
	<div style="display: block; width: 32px; height: 32px; float: right; position: absolute; top: 5px; right: 5px;"><a title="Click vào đây để quay lại." href="?type=page&name=<%=Request.QueryString["name"] %>"><img alt="Back" src="resources/images/Back.png" /></a></div>
</div>
<%if(isAdmin) { %>
<div style="margin-bottom: 10px; overflow: hidden;">
    <span id="addLink" class="yui-button yui-link-button yuibtn yuibtn-icon btnadd"><span class="first-child"><a href="<%=bUrl %>&action=addsite" tabindex="0" id="addLink-button">Thêm website</a></span></span>
</div>
<script type="text/javascript">
    YAHOO.util.Event.onContentReady("addLink", function () {
            var oAddLink = new YAHOO.widget.Button("addLink");
        });
</script>
<%} %>
<div style="overflow: hidden;">
    <div style="float: left; width: 190px;">
        <uc1:RssSourcesMenu ID="RssSourcesMenu1" runat="server" />
    </div>
    <div style="margin-left: 200px;border: solid 1px #89D;">
        <div id="contentCont" runat="server" style=" padding: 3px;">
        </div>
        <div class="clearfix"></div>
    </div>
</div>